Imports Microsoft.ManagementConsole
Imports System.ComponentModel
Imports System
Imports System.Security.Permissions

<SnapInSettings("{BB598D17-BB0A-4e4d-9A45-9779CF8058D8}", _
  DisplayName:="Account Lockout Management", _
  Description:="Account Lockout Management") _
> _
Public Class MMCTreeNodeRoot
  Inherits SnapIn

  Public Sub New()
    ' Create root node
    Me.RootNode = New ScopeNode(True)
    Me.RootNode.DisplayName = "Account Lockout Management"

    ' Create formview for the root node
    Dim fvd As New FormViewDescription()
    fvd.DisplayName = "Account Lockout Management"
    fvd.ViewType = GetType(MMCFormView)
    fvd.ControlType = GetType(MMCUserControl_ALM)

    ' Attach the view to the root node
    Me.RootNode.ViewDescriptions.Add(fvd)
    Me.RootNode.ViewDescriptions.DefaultIndex = 0
  End Sub

  Protected Overrides Sub OnInitialize()
    MyBase.OnInitialize()
  End Sub

  Protected Overrides Sub OnShutdown(ByVal status As Microsoft.ManagementConsole.AsyncStatus)
    MyBase.OnShutdown(status)
  End Sub
End Class
